<style>
    .action{
        background: none repeat scroll 0 0 #EEEEEE;
        border: 1px solid #CCCCCC;
        border-radius: 5px 5px 5px 5px;
        height: 34px;
        margin-top: 10px;
        padding: 10px 10px 10px 125px;
    }
    .action input{
        border-radius: 5px 5px 5px 5px;
    }

    .tablelist   input{
        font-weight: bold;
        padding: 5px 10px;
        text-shadow: 2px 2px 2px #CCCCCC;
        border-radius: 5px 5px 5px 5px;
        width: auto;
    }

    .tablelist textarea{
        font-weight: bold;
        text-shadow: 2px 2px 2px #CCCCCC;
        border-radius: 5px 5px 5px 5px;
    }



</style>

<?php
$this->breadcrumbs = array(
    '留言' => array('admin'),
    '查看',
);
?><div class="box corners shadow">
    <div class="box-header">
        <h2>查看→记录 #<?php echo $model->id; ?></h2></h2>
        <div class="box-header-ctrls">	
            <a href="javascript:void(null);" title="" class="close"><!-- --></a>
        </div>
    </div>
    <div class="box-content" id="contacts-1a">
        <div class="inbox-sf">
            <?php
            echo CHtml::link('<span>删除</span>', '#', array(
                'submit' => array('delete'),
                'class' => 'button black fr',
                'confirm' => '您确定要删除吗?'
            ));
            ?>            <a class="button black fr" href=" <?php echo $this->rewriteCreateUrl('create'); ?>">
                <span>创建</span>
            </a>
            <a class="button black fr" href=" <?php echo $this->rewriteCreateUrl('update', array('id' => $model->id)); ?>">
                <span>编辑</span>
            </a>
            <a class="button black fr" href=" <?php echo $this->rewriteCreateUrl('admin'); ?>">
                <span>管理</span>
            </a>
        </div>
        <?php
        $this->widget('zii.widgets.CDetailView', array(
            'data' => $model,
            'cssFile' => '',
            'htmlOptions' => array('class' => 'tablelist'),
            'attributes' => array(
                'id',
                'site_key',
                'username',
                'email',
                'title',
                'content',
                'add_time',
                'ip',
            ),
        ));
        ?>

        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'web-guestbook-form',
            'enableAjaxValidation' => false,
                ));
        ?>

        <div class="content">
            <table  class="tablelist">
                <tbody>
                    <tr class="odd">
                        <th><?php echo $form->labelEx($model, 'state'); ?></th>
                        <td><?php echo $form->dropDownlist($model, 'state', array() + webGuestbook::model()->status_array); ?></td>
                    </tr>

                    <tr class="odd">
                        <th><?php echo $form->labelEx($model, 're_content'); ?></th>
                        <td ><?php echo $form->textArea($model, 're_content', array('rows' => 10, 'cols' => '60')); ?></td>
                    </tr> 

                    <tr class="odd">
                        <th><?php echo $form->labelEx($model, 're_username'); ?></th>
                        <td><?php echo $form->textField($model, 're_username'); ?></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="action">
            <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
        </div>
        <?php $this->endWidget(); ?>
    </div>
</div>
